package manager.workflow.controller;
import common.PageView;
import io.swagger.annotations.Api;
import manager.api.ThirdProcessDefinitionVO;
import manager.api.WorkFlowApi;
import manager.workflow.vo.WorkFlowVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping(value = {"/admin/workflow"})
@Api(value = "工作流模块")
public class WorkFlowService {
    @Autowired
    private WorkFlowApi workFlowApi;
    @RequestMapping(value = "/list", method = RequestMethod.POST)
    public PageView<List<ThirdProcessDefinitionVO>> getOrderByCondition(@RequestBody WorkFlowVO workFlowVO){
        //添加订单
        PageView<List<ThirdProcessDefinitionVO>> orderResult=workFlowApi.selectPageProcessDefinition(workFlowVO);
        return orderResult;
    }
}